package com.ruoyi.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 中间表
 * </p>
 *
 * @author author
 * @since 2024-08-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_building_room")
public class TbBuildingRoom implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 中间表主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 楼盘表
     */
    private Integer buildingId;

    /**
     * 楼栋表
     */
    private Integer buildingblockId;

    /**
     * 单元表
     */
    private Integer unitId;

    /**
     * 房间号表
     */
    private Integer roomId;

    /**
     * 用户表（假设用户表已存在，此处不创建）
     */
    private String  userId;

    /**
     * 楼层表
     */
    private Integer floorId;

    private  Integer  roomStatus;

    @TableField(value = "`usage`")
    private  Integer usage;


}
